Total Complexity | 12 |
Dependencies | 2 |
Dependents | 0 |
Total lines | 121 |
Lines of code | 79 |
Logical lines of code | 43 |
Comment lines | 2 |
Methods | 12 |
Properties | 1 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
setUp() | 68 | 1 | 7 | |
tearDown() | 76 | 1 | 4 | |
test_get_real_ip_with_x_forwarded_for_private_ip() | 75 | 1 | 4 | |
test_get_real_ip_without_x_forwarded_for() | 80 | 1 | 3 | |
test_anonymize_ipv4() | 66 | 1 | 8 | |
test_anonymize_ipv6() | 66 | 1 | 8 | |
test_anonymize_invalid_ip() | 80 | 1 | 3 | |
test_validate_success() | 65 | 1 | 9 | |
test_validate_failure() | 65 | 1 | 9 | |
test_validate_with_wp_error() | 70 | 1 | 6 | |
test_validate_with_empty_response() | 65 | 1 | 9 | |
test_validate_with_invalid_json() | 65 | 1 | 9 |